package com.riji101.controller;

import com.riji101.repository.entity.UserENT;
import org.springframework.beans.factory.annotation.Autowired;

import com.riji101.repository.mapper.UserMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @Autowired
    private UserMapper userMapper;

    @GetMapping("/test")
    public UserENT query() {
        System.out.println(userMapper.selectById(1));
        return userMapper.selectById(1);
    }
}
